Yes, but...
It's fine for you to practice with a cold and you will probably feel better after class. The practice can help reduce symptoms and boost your immune system.
On the other hand, you have to think about your fellow practitioners. Colds and other viruses can spread easily so it may be a good idea to stay home during the first couple of days and/or when your symptoms are at their worst.
If you do come to the studio with a cold make sure to wash your hands frequently and cover your mouth when sneezing (it's best to sneeze into the crook of your elbow if you don't have a hanky). Cold viruses can be transmitted by air but they are more often transmitted through the hands.
