Taking a loan is irreverent to filing a tax return.
If you are a dependent then only the taxpayer claiming you as a dependent can claim educational credits. If you are not claimed as a dependent by anyone then you can claim your own educational credits. (Educational credits go with the dependent).
But federal parent plus loan will be under my parents name. If the loan is under their name, will i still be able to claim that credit in my tax?
Yes. You can claim the education credit even if the loan is in your parent’s name.
The IRS says if someone other than you, your spouse, or your dependent (such as a relative or former spouse) makes a payment directly to an eligible educational institution to pay for an eligible student's qualified education expenses, then the student is treated as receiving the payment from the other person and, in turn, paying the institution.