Yes You can connect the PINS to LCD, but there is SDA and SCL lines also in that PORT so basically if you have Deigns issue (i.e. No other Options Left)
then just Connect PC-4 to PC-7 to LCD'data pin DB-4 to DB7
Minimum 4 pins (for Data Lines) are enough to Display
But if you have other PORT options Just go for other