There were definitely castles which were built to withstand sieges. Like Krak des Chevaliers and other crusader castles. Of course it was preferred if seiges could be avoided but I do not think your pedantry about fortress vs castle matters much since there were many types of both.