Hi! Many thanks for your question on eHealth forum!
If your boyfriend really pulled out before ejaculation, then you cannot be pregnant.
Swelling of vulva could be due to first time sex, rough sex and frictional injury. Applying cool compress and refraining from further sex until proper healing usually helps.
However since there is a rash, please rule out STD like herpes and fungal infection. Since a confirmed diagnosis cannot be given on net please get yourself examined by a gynecologist once. Hope this helps. Take care!