Can I get a credit card if I have a bad credit history?

It depends on your own circumstances but there are a number of cards designed specifically for those with troubled credit histories.
To minimise the risk of further damage to your credit record you should use a soft search before applying for a credit card.