It gives the right frequency so i suppose its correct. Actually MPLABX's help says :Without more of your code no one could tell what that statement could possibly mean, though I do hope you enable the I2C before you attempt to use it.
The module should be appropriately configured (using I2CConfigure and I2CSetFrequency, and possibly I2CSetSlaveAddress) before being enabled(I2CEnable).