Yes ... it's very important not to do any training where there are distractions of any kind
Think of a dog having severe ADD
anything that comes by that has the least bit interest will grab their attention
always make it a fun
and even gauge their enthusiasm level
make the training session when they are awake .... happy and well fed