M404 - Control If LTE or Wi-Fi Is Used

Yes, you can use WiFi.prefer() or Cellular.prefer() to set the preferred method. If the preferred method is not available, it may use a different method.

Also you should use Device OS 5.9.0 or later if using network preferences as it may not work correctly in earlier versions.