Hi,
Sure what Pommie has suggested will work fine.
However to save yourself needlessly searching, when stuck for such program code, you first want to look in the Arduino main site, more info there than you can imagine including all the basic code parameters.
https://www.arduino.cc/reference/en/
Arduino Project Hub is a website for sharing tutorials and descriptions of projects made with Arduino boards
create.arduino.cc
Every I2C device has its own ID code and typically LCD I2C modules are set to 0x27 by default, and needs addressing as such in the program code.
However thats not always true or you may want to use other I2c devices as well.
This little bit of code from the web will just read the ID code from the I2C device / LCD once you have wired it up, always a good check.