Yes, but not under permitted development. Planning permission is required.
When I bought, my solicitor described it as unusual that I would own and be responsible for the roof. However if I do get the opportunity to convert it, presumably that's one less thing in the way.
Can you do loft conversions in flats?