It will be fine, and yes, 18/6 is optimum.
Cannabis can only grow so much during any 24 hour period and this growth tops out at about the 18 hour mark, meaning running your lights longer than 18 hours is basically a waste of electricity.
Plants also need a dark period to function properly and to have a correctly functioning metabolism and a complete photosynthesis cycle, and I personally think 4 hours is just not enough "dark time".
Whatever you do, do not fall into the trap of thinking 24/0 is fine, no plant on Earth can grow properly without sleep, and just like humans, have a need for a "circadian rhythm", which is essential for every aspect of normal functioning and overall health.
I like to think of the 6 hours of darkness as 2 hours to recover from the day, 2 hours to rest and 2 hours to get ready for the day ahead, and this is basically what occurs during a plants' sleep/dark time.
Hope this helps, Organoman.