Yes you can.
As with most things in life, moderation is the key. Scientific studies have not demonstrated any problems with caffeine consumption during pregnancy until a woman consumes over 700 mg per day. That’s a lot of caffeine! To be safe, and to make sure that a woman never approaches that amount of caffeine consumption, we recommend that women limit themselves to 350 mg of caffeine per day.
Check out this list to learn how much caffeine is in common beverages. In general terms, the average cup of regular coffee and the average serving of a caffeinated soft drink. But beware: it is possible to overdo it with a large special order from Starbucks.