Yes I think that there is always a slight risk of pregnancy during circumstances such as these.
I suppose it depends how thin your underwear is and how wet you are underneath. Obviously theres going to be less risk than if you were wearing no underwear but in my opinion there is still a risk.
Nature likes to find a way