It depends who and when and what work you're talking about.
Legislation through the 19th century means there's increasing control over the employment of women and children in the factory acts and the 1842 Mines Act and others. The Mines Act prohibited women and boys under 10 from working underground, but it wasn't immediately effectively enforced, and there were still pit-head lassies (wearing trousers - shock!) into the 30th century.
Other legislation affected who was available for work, such as the introduction of compulsory education. Then you get areas like agriculture where whole families would be involved at harvest, though they may not all have been paid, particularly if family
A lot of professions barred women until the later 19th and into the 20th centuries, or restricted the roles they could do. These were the areas were marriage bars were likely to be in place, the last of which went in 1973 in an area of the civil service. However, whether or not women continued to work on marriage also depended on how much social pressure applied; a lot of women were still expected to give up work on marriage into the '80s, even if there was no official bar in place, and if not then, then on the birth of the first baby. Some employers, such as some banks, still had forms asking your husband to sign that he agreed to you working after marriage - into the 1980s.
Not everyone did quit work; my grandmother worked as a teacher through the '50s and '60s. Marriage bars depended on the LEA and weren't unuversal. Her own children were safely away at boarding school in term time, and I think she did it more to use her brain than for the money. She had been to Cambridge (before they awarded degrees to women,) and I suspect that had she been of my generation, she'd have done a PhD. (And had my father not been born earlier in 1939, she might have spent the war at Bletchley, where something like 75% of the staff were women.)
My great aunts on that side unusually had some sort of higher education; three married and did no paid work after that, AFAIK. The other two never married and had professional careers. Virginia Nicolson's book Singled Out is good on the interwar generation of women and work- many women of that age never married because they lost men in the war.
On the other side, my grandmother worked in a factory until marriage and didn't work again after the war (when her eldest child was born) - she had dependent children until retirement age.
Much of women's work wouldn't have been easily visible. Taking in piecework, laundry, helping in family businessesband so on might never have shown up on official records.
I'm not sure when PAYE came in (and can't be arsed to look it up just now) though NI payments presumably date from the introduction of the welfare state post WW2. When we were clearing my father's office after his death, there was a blank tax return for about 1972-3 - one of the sections asked about dependent adult daughters.
But whatever rules were in place at whatever time in whatever employment area in whatever class, some women have always needed to earn money.