Not the battle. The surrounding operation maybe, but the character and outcome of the battle are unaffected; they are a separate entity. There are countless examples in military history of successful battles within disastrous campaigns.