No they're not.
I've worked in factories in Cumbernauld, I've worked in universities in St Andrews, I've worked in banks in Edinburgh, I've worked in accountancy offices in Glasgow, I've worked in hospitals in Dumfries.
I've visited pretty much every part of the country, and no-one has ever "code switched to match my expected communications preference"
This idea that Scottish people are some generic blob who speak "Scots" just isn't true to the real diversity of the country.
Aberdonians, Glaswegians, Edinbuggers, residents of the Kingdom of Fife, Teuchters and all the rest have different accents and different dialects but they don't speak different languages.
Edinbuggers is a term for people from Edinburgh, usually used by Weegies (people from Glasgow), e.g. https://www.amazon.co.uk/Weegies-Edinbuggers-Edinburgh-Sligh...
Spend some time in places like the Shetlands Islands or the Orkney Islands and the dialect vs language distinction is much more debateable, given the number of distinct words borrowed from the Norn language.