Adoption question

So i am married but while me and my husband were seperated i got pregnant by someone else… would i need the bio fathers consent to put the baby up for adoption since me and the bio dad arent married