About the SDcard upgrade

Hello all
about the SDcard,Can I change the contents of the py file saved on the SD card by upgrading the firmware?I want to use the IDE to perform a firmware upgrade, but the firmware program I compiled is not displayed in the SD card, or is it a flash firmware upgrade when the firmware is upgraded。