I did a commute like this for 3 years. It's very doable (and enjoyable!). A few things I did not anticipate when planning the trip.
In the summer you need to leave time to cool down/shower.
Head wind can significantly affect commute times.
You need to draw a line where you know it will not be safe to bike I e. Snow, heavy rain, heavy wind. This way you can plan for a back up.
Flat tires/bike malfunctions happen. Make sure you know how to repair things and that your job would be understanding. You would be surprised how the same employer might be understanding for a flat tire on a car but not on a bike.
This is my experience in The US at least. You should do it!