Did every knight have his own castle?
No. Castles were expensive. Poorer knights might live in a castle owned by their lord or in a nearby manor house. By living this way they would be ready to go to war or protect their lord’s lands at a moment’s notice.