Aye. Moats were mostly used by fortified cities rather than castles. As it is said above, castles were usually built on hilltops and montains.