Hi, Yes, the grammar is fine. Without a context, I cannot tell you if the meaning you wish to convey is completely correct. What I read from it is that you are explaining to someone a general process when you are replacing a door.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.