Yes, both bacterial infections (such as urinary tract infections and strep throat) and viral infections (including the common cold, infectious mononucleosis, and hepatitis) can cause hives.