Would a loan repayment appearing in bank statement affect visa application

I work as a doctor in my country and I am applying for a standard 6 months uk visa to enable me write the plab 2 examination which can only be taken in the uk. My dilemma is that I am planning on taking a bank loan in addition to my savings to enable me afford all the cost of the examinations. Would the presence of a loan repayment on my bank statement negatively affect my visa application. Is there any way to go around it so it doesn’t.