Unless you’re a pro athlete, or on meds/have health needs, you don’t have to worry about timing anything. Workout when you want.
Ideally, for weight loss, you should be doing a fasted workout to increase fat burning. But you can choose to incorporate that if you find results are slow/non-existant