Will it work properly with a magsafe case?

I getting a zflip 5 now and I wanna buy a magsafe case. But I'm not sure if it would affect the phone since the phone states not to put anything affected by magnets near the phone.