apply for visit visa less than 3 months from Egypt

Please, I want to apply for a visit visa to for my husband to see me in the uk (am a student). he wants to travel in August, is it ok to apply on 20 June or he will get rejected? because am student and my financial support end by end of september and I am supporting him. please, recommend me what I should do