If you lack a credit history or have poor credit, opening a credit card can be a smart way to build or rebuild credit - as long as you practice responsible financial behavior.