No, a credit card is absolutely not necessary to play at online casinos. You are free to choose the payment method that suits you best and casinos offer several possibilities.