Is it ok if I have a cup of coffee? Breastfeeding

My baby is less than a week old and I’m breastfeeding. I feel guilty having any caffeine but I know they say it’s fine! If I do have a cup, is there a time that would be best? Like immediately after a feeding?