As long as you have good fixings into the wall then sagging shouldn’t be a problem however if you are concerned about this then this kit comes with a ceiling support
http://shower-warehouse.com/shower-curtains/shower-curtain-rails/B-TECH-SRSS04-Byretech-L-Plus-Ceiling-Shower-Rail-SRSS04