Yup that would work, you would need to use displayport however, and since it only has a single displayport output you would need to use a USB type-C to Displayport cable and use the USB type-C port as a Displayport using the USB type-C alternate mode.
But assuming you have displayport monitors and the proper cables, it would probably be the smallest footprint computer that can easily handle dual 4k desktop use.