Not necessarily. While aligning artwork with a door frame can sometimes look tidy, the better approach is to consider overall balance, eye level, and the surrounding space rather than the door frame alone.
When It Works
Small walls
On narrow walls next to a door, centering a picture relative ...