Yes.
If you are doing it via pocket/insert replacement and not pulling off the siding, brick, etc, you can put it in as pocket style door.
Pay special attention to the flashing and moisture management detailing as mentioned above.
Can you post up a picture?