Yes and no.
I would say no because the most important thing is for you to train and everyone has different available training times.
And I would say that mornings are the best in terms of waking up, having your priorities right and then if you train in the morning, it is out of the way.
I personally see that clients that have training as a priority have that as a successful routine and training is part of them.
Sometimes when you decide to train after work, it might not work, you might have a last minute work meeting, or another appointment.
You can even be more tired at the end of the day.
But like anything in life there are exceptions and some people are not morning people, simple as that.
The take here is make training part of your life.
Does it matter when you train?