Go for it. Your body will tell you pretty quickly whether you can handle it. If you find it's too much at the start, drive part of the way or don't try to cycle every day.
I was already cycling quite a bit when I started commuting, but still had to adjust to the routine of riding every day. Plus my commute route is very hilly. One thing I learned is that you can't ride hard every day. Most days I ride at a very moderate pace and that keeps my legs fresh enough to ride to work most days. Af first, I tried to keep a fast pace every day and got burned out pretty quickly.
Also, be safe. Get some good lights, front and rear, as well as brightly colored jerseys and jackets. I see too many occasional commuters dressed like ninjas and they probably get scared off of commuting from close calls with drivers who don't see them.