Hi Emily B,
Sperm does not permeate through any clothing. Therefore, even if there was any precum on his underwear, you cannot get pregnant this way. Unless there was any sort of penetration or ejaculation near the entrance of your vagina, this is not a possible way to conceive.
Please practice safe sexual activities and educate yourself on the subject if you are going to engage in it.