During a podcast appearance, the singer detailed the song she wrote about taking a pregnancy test after having unprotected sex