Hi,
If it is part of your action plan it is possible for a personal advisor to decide that only that activity counts as a work-related activity. But they would need to inform you of this and of the possibility of your benefit being sanctioned.
There's more about how sanctions work in our guide to understanding ESA.
Steve
Nothing on this board constitutes legal advice - always consult a professional about specific problems