No, you cannot marry in the UK with the standard visitor visa. You must apply for a UK Marriage Visitor visa to get married in the UK. The Marriage visitor visa is a separate visa formulated to allow foreign nationals to come to the UK for marriage purposes. You must leave the country within six months after the marriage ceremonies.