no, dont get a job
Being a house wife, you are the primary care giver to the kids. Custody is not determined on who get a job or not, it is on who is the primary giver.
Plus, if your marriage is long enough, you can get alimony from youth hu*****and.
It is possible that you get kids and house, and continue to stay in the house with kids.
Even you want to work in the future, do so after divoice, but this might enable your hu*****and reduce the alimony.