Am I doing the right thing?

Ga

My 12 year old son came out to me as gay a few months which I was a bit shocked at such a young age discovering it. I’m always going to love and accept my kids no matter what. My husband is homophobic and at the same time is the father of our 4 year old daughter so I really don’t want to leave him even though I know it’s not right to be with someone who won’t accept my son for who he is (my sons are from my first marriage), am I making the right choice?