Yes, but the only possible way to obtain legal parentage would be by means of an adoption order. To apply for a parental order, it is a requirement to be married or in a civil relationship. Check the requirements for adopting a child in the UK above.
Suggested for you: How Does Surrogacy Work in the UK? – Law, Cost & FAQs.