Yes, and some local codes require them to be there.
230.70(A) (1) Readily Accessible Location. The service disconnecting means shall be installed at a readily accessible location either outside of a building or structure or inside nearest the point of entrance of the service conductors.