Yes. Another person may pay for your visit to the UK provided there is evidence of a genuine personal or professional relationship with the person. This person may either be inside or outside the UK and may be your relative, friend or employer. However, their claimed sponsorship is not the only criteria for assessing your eligibility for the visa. It is your personal circumstances in your home country that counts most in assessing your eligibility. Therefore if the officer finds that your friend or relative has sufficient resources to maintain you in the UK, but question marks hover around your claimed personal circumstances, your application will be refused.