It may be possible depending on the given module. Some are made specifically to support this and some kind of support this.
That said from personal experience this can be a very difficult issue, so I would try to buy a module that was built to do this or avoid uploading code over Bluetooth entirely.