Loans affect peoples credit scores in a few ways.
If you pay your loan payments on time you can raise your credit score but if you default on your loan payments you can get a bad credit score which can and will affect getting future loans.
If you get a loan make sure that you can pay it back without any problem.