Can virgins have an ED?!?

Hi everyone, so i’m in my mid 20s and i have problems with erection and getting hard. Let me explaim. I’m a virgin, around 180cm and 100kg and for the past couple of years i’ve been kinda depressed and anxious. Latley i’ve found out i have high blood pressure and it’s hard for me to get hard even while watching porn. Never been in a position to have sex, it kinda scares me honestly so is possible to have and ED even though i’m a virgin?