Apart from pensions (which can have different rules) you can leave whatever you own outright to anyone you wish, married or not. What IS important is to realise that once you marry all previous wills are null and void and if no new will is made then the laws of intestacy kick in. Nowadays that means that the surviving spouse gets the first £322,000 and half the remainder, while the children get the balance split between them. Depending on the size of the estate this split might do what you want it to, but it may well not.
A friend of mine, divorced for most of his adult life, had made a will making his two children (from his first marriage) the sole beneficiaries of his will. The daughter had a mental illness and difficulty in earning her own living. When he knew he was dying he hastily married his long-term partner who was a wealthy lady in her own right, and did not realise that he needed to make a new will to avoid the laws of intestacy kicking in. As a result the new wife inherited all of his estate (under the limit) and the children nothing at all. I am 100% certain that my friend would not have intended this. After his death the new wife promptly shipped in a new partner to the home she had shared with my friend.