Ex barista here.
Yes, the coffee machine heads, gaskets and filters must be cleaned every day at end of service.
Methods vary according to the machine: chemicals must be back flashed into the filters and the water dispensing pipes, but never into the milk wand.
The system must then be back flashed with clean water a few times, accessories also rinsed.
On multi dispensing machines his is called "taking a head off".
Next day, before service, a couple of coffee shots from each head must be wasted in case of lingering aftertaste from the chemical.
Depends what kind of machine you have got, some home appliances do not need their internals cleaned, especially if you have soft water.