Yes, of course. We love to reuse windows and doors, there’s so much perfectly good second-hand joinery on eBay, Gumtree and Marketplace.
However, windows must have frames and casements (the opening parts), and doors must be external doors with frames. If in doubt, please send us a picture, and we will tell you if we can use it.