One could argue that both ways, I guess.
MSA planning is a defence against hitting terrain in case of entering (illegally and inadvertently, no doubt) IMC.
It is also a defence against busting CAS, though in the southern UK one is unlikely to bust CAS by respecting the MSA