What you suggest is certainly possible, but it probably should not be the first door-hanging project that you tackle. Basically, I mean that this requires some construction and trim experience/knowledge to properly build an entrance door jamb which will adequately seal and support your door. I assume your experience in this area is somewhat limited, as it was necessary for you to ask the question. I am not criticising nor making light of your question, but just pointing out that it is on the high end of the DIY spectrum.