When you edit images in Pixelmator Pro, most of the changes you make are nondestructive. For example, you can add text, adjust the colors in an image, add effects or custom styles, then go back to adjust individual changes whenever you like. You can even completely reset them to bring back your original image. The Pixelmator Pro — PXD — file format was designed so you could save those changes together with your file and adjust or reset them after closing and reopening your images.
If you plan to keep working on the text, colors, effects, or other parts of an image after closing it, you can save it as a PXD file. To share images on the web or with someone who doesn't have Pixelmator Pro, you should export it to a different file format.
Alternatively, you can save your designs to regular image formats, such as JPEG, PNG, TIFF, HEIF, or WebP, while preserving layers and edits, and share these files with others or post them online without having to export. See the article Editing settings to change your editing workflow.