Breastfeeding through the night

Stephanie
My baby girl is two and a half weeks old and I am exclusively breastfeeding. She usually wakes up to eat every 2-3 hours but sometimes if I don't wake her up she would go longer. I'm extremely sleep deprived and wondering if it's ok to let her sleep for longer or if it's mandatory for her to eat every 3 hours? Thanks in advance