Never tried, in theory it should be possible, might need a dedicated bootloader.
What is the problem you try to solve?