Is there are rule in islam that it is compulsory to make a partition in the hair style ?

As long as it’s fully covered for the female in presence on non mahrems then that is hijab