Caffeine?

When you first find out your pregnant can you have caffine or is it bad for the baby?