As long as you’re using a paint that’s suitable for exterior use, you can use it for both the door trim and the door itself. Some people prefer to paint the trim with a different color to accent the door and help it stand out, but that decision is completely up to you.