Aslong as you have run it inside a wiring zone, it is fine.
I wiring zone is defined by an accessory mounted on a wall (socket, switch, blank plate). A safe wiring zone is vertically above and below a accessory, the width of the accessory, and also horizontally left to right as above.
You may also run cables in safe zones which are 150mm from any ajoining walls (internal corners of a room), and where the wall meets the ceiling.
If you want to run outside these safe zones, you need to bury the cable deeper than 2" (and make sure it is 2" deep from the reverse side!), or install the cable in earthed conduit or similar. You can also directly cover cables with a metalic armouring or concentric construction, such as SPLIT concentric cables, SWA cables, MI, FP etc