You can pass a cable through a separating wall but be careful.
Answered by Rupert, Electrical Safety Expert
Yes it can, but consider the route and the risk of damage to other cables.
If in doubt, you should ask a registered electrician to check and/or carry out the work. You can find one local to you here.