Yes, you can. However some pre-paid cards do not support 3D Secure, an extra level of security.
Register the Mastercard/Visa gift card using the instructions provided with it. Once fully registered then attempt your payment.
If you find the payment is blocked then you might need to use a non gift card to complete your transaction.