It all depends on what the virus put on your computer and without knowing which virus it was, you can’t be sure (though it is unlikely with most viruses around today).
If you’re concerned, call the credit card company. They’ll be happy to issue you a new one immediately.