It can definitely happen, especially if you're a new or infrequent user. I'd strongly recommend that you stay away from any sativa or sativa dominant strains as those are known to cause that in some.
Tolerance or lack thereof is a likely culprit. I'm a veteran smoker, nearing 30 years. A couple years ago I'd gone maybe 10 days without smoking and then decided I wanted a preroll. The 2g Gary Payton moon rock rollie had me in the ER (I was already otw there, didn't end up there exclusively from the weed, but) with a heart rate of 160+ bpm for well over an hour lol.