You can do it. There are plenty fo people on this forum that will chime in that have or used to ride that far. If you can do a combination at first that might be best. 20 miles each way is quite a bit to start.
A type of road bike is probably the way to go.