Can the company apply from L1B visa to GC having less than 8 months before the total 5 years under L1B?

My 5 years In USA under L1B will expire around 8-9 months, is this time enought for my company to apply for GC? Asymming that they will start it next month? Or do I need to leave the country?