You can use any pen you like, provided the ink isn’t susceptible to smears or bleeds. Rollerball pens, for example, use ink that takes time to dry. In this case, you’d need to leave the card open for a minute or two before closing it to minimize ink transfer. The ink in ballpoint pens tends to dry faster, so you can write your card and close it immediately without much, if any, ink transfer.