didn't use to

Hello!
I would like to know if this sentence is correct:‘I didn’t use to like Chemistry when I was in the 9th grade but now I like it.’
Thank you for your time!

yes

Here’s more information
bbc.co.uk/worldservice/learn … oint.shtml