It is very likely that you could get HIV. It's never a good idea to share anything that can transmit bodily fluids with an infected person especially if you have open flesh.
Never share glasses with anyone as you could contact a number or viruses. As long as you did not come into contact with their blood you should be fine.