Don't worry, if you have been removed from a fleet by your captain, the entire amount of your coin and food contributions will be returned to you (you can exceed your food storage capacity).

However, if you leave the fleet by yourself, you will not be able to reclaim any of your donated food or coins!