In the UK, the rules vary depending upon the class of airspace. In general terms, I would say that you may fly above cloud
provided you are in sight of the surface
and meet the appropriate visibility requirements for your licence
and the class of airspace.
This is probably worth a look.