Yes, an unknown viruses or malware can sometimes encrypt your card, adding write protection to it, and disallowing you to access the data stored. The most efficient way to remove virus from a memory card is to run an anti-virus program.