hi.welcome to HealthcareMagic forum.
HIV virus is very susceptible to die in adverse environment.it can not live longer in air.to get HIV in this scenario first there should be infectious substance over pin.if it was there solid needle has less chances.to know more about this you visit nearest ART centre or talk to
AIDS helpline numbers.you may undergo HIV testing and march accordingly.contact ART centre.