It’s possible to have a credit score without a credit card, though you’ll need to have some credit history to do so.
If you don’t use consumer credit, you can build your credit by securing a credit-builder loan or adding an authorized user to someone else’s card with established payment history.