The FORMAT command from DOS, Windows (all versions) does not install an OS. You'll be fine.
But let me comment. Why not give them the CDs that came with the laptop. The OS license isn't transferable to another machine and the laptop's restore CDs make reinstallation of the OS a snap.
Bob
I am donating old laptop to a needy student. It is a Toshiba Satellite 2060CDS. Student has access to an OS. Can I just reformat and give to her? Are there any legal procedures needed? Thanks.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic