Heat and pills

So I brought my pills in my purse to the pool (at night) in Texas and there was no sun. And then my bf came in me. Are those pills still good to take? Or should I start a new pack?