a general visitor must not intend to marry in the UK, so whilst there is not a restriction on you marrying, if you came here with the intention of marrying then you may be considered to have misled the immigation officer when seeking leave to enter as a visitor. you can only apply for a spouse visa ...