Yes, you can cancel posting a photo or video on Instagram even if it's already uploaded but not yet published. To do this, tap on the 'X' button at the top left corner of the screen while the post is still being processed (you'll see a progress bar). By doing so, you will discard the post and prevent it from being published.