Yeah you can for sure. Battles are pre-determined upon the inputs you do so if you die it's completely fine to f5 for a battle.