Caffine & High BP

Sorry if this is a stupid question, but can I drink a cup of coffee if my doctor told me no caffeine? My blood pressure has been elevated for a bit, so my doctor put me on a no salty food no caffeine diet. I’ve been doing well these last few days adjusting to the changes. My main problem was soda, and I’ve asked around and others with high bp drink coffee. Should I still stay away, or is 1 cup a day ok? Thanks in advance!