No, but we are likely born with a predisposition to it considering when identical twins are separated at birth and one is gay, the other one has a lower likelihood of also being gay than if they are raised together (but a higher likelihood than the general population). I imagine our early formative years also play quite a large role.