It is advisable to have a gap less than 5 years for the visa success rate, although you can apply for a student visa if you can prove your study purpose via strong SOP. You should be able to convince the visa officer that you have strong ties in your home country and will return after study...