It's acceptable to study at that time but not at the expense of your entire night's sleep if doing so helps you concentrate more and recall the topics better.