Yes, it is compatible, but I would not recommend it because the MacBook Pro has a high-resolution Retina display and a 4K UHD 3840 x 2160 pixel display fits much better externally. This monitor is also ideally suited for charging the MacBook Pro via the USB-C interface with up to 90 watts:
Samsung LS27A800UJUXEN (3840 x 2160 Pixels, 27 ")