Co-signing a personal loan is not a hard inquiry. Hard inquiries can only be made by lenders when you apply for credit. Although this is the case,  co-signing a loan can still impact your credit score.
If you don't make your monthly payments on time, it will appear on your credit report as delinquency, which could lower your credit score.