Coffee and pregnancy!

Is it ok to have one cup of coffee per day while pregnant? I have read different things, if I don't have at least one cup I get bad caffeine headaches! I will suffer though the headaches if it is best not to for the the baby, but I would like some answers!  :/