Coffee cans come in different materials these days. Different brands use different materials.
Plastic "coffee cans" are great to repurpose. Drill, punch, or cut some holes in the bottom for drainage and you're good to go.
All metal coffee cans can also be used for planting. Again drill holes for drainage, or use a punch type can opener (the kind that punches triangular holes near the edge of the can) around the bottom of the can. The only problem with metal coffee cans is that they rust pretty quickly. They only last a year or two.
The final type of "coffee can" is made from a cardboard tube with a metal bottom and a metal ring around the top. These are less useful for plants. They tend to degrade from the wetness of the mix or soil.