Yup - not a problem.
But just an FYI, the USB-C chargers included with the 13" and 15" MacBooks Pros I believe are 61W and 87W, and the iPad Pro might charge at 12W from both of them as that is the only compatible power delivery profile. Definitely the case with 2017 iPad Pro, not sure if it has changed for the 2018.