You are free to use what ever payment method you wish on your account.
However, keep in mind that if you are using someone else’s payment method to pay for your services, there is no way for you to prove that you had permission to use said payment method.
Which means that if your friend were to, later on, say they had not agreed to make any payments on your account, we would have to treat the account as fraud and terminate it.
While you are free to use what ever payment method you wish, we will always strongly recommend that you only use payment methods that belong to you. Keep in mind that if you are short on funds, your friend can easily transfer funds from their Credit Card or PayPal account to your own.