It says in SA YD Siman 305 that a Bas Cohen that has a bechor with a goy there is chiyuv of pidyon haben since the Bas Cohen through having relations with the goy she looses her status of being a Bas Cohen. What about if a not frum Bas Cohen before becoming a baales teshuva had relations with a goy. Then after becoming frum later got married to a Yisrael and had a bechor. Is there a chiyuv of making a pidyon haben on that child (the sofek being since al yadei the relations with the goy before becoming frum perhaps she then lost her status of being a Bas Cohen.)