Yes, WiFi (unless it detects connection or connectivity issues) will always be preferred. Bear in mind that, unless WiFi calling is active, MMS messages will require using mobile data and you might see those two connections active at the same time when receiving/sending such messages.