Totally fine, no negative effects. There are studies that show subtle differences in results in exercise, depending on when you eat. If I recall correctly, strength work benefits from eating immediately after exercising, while cardio for weight loss benefits from waiting a while to eat after finishing. But we are talking differences of like 5-10% in outcomes. In all cases, it’s better to exercise than to not exercise, so go do it!