Leftovers safe to eat? (Pregnant)

Possibly a dumb question, but I had some leftovers that I forgot to put in the fridge, so they sat out for about 5 hours before I put them in the fridge. As long as I heat them up should they be safe to eat the next day?