You can get a credit card but it may have to be a secured card.
See https://wallethub.com/credit-cards/bad-credit/
https://www.experian.com/credit/credit-cards/best-for-bad-credit/