Yes, older dogs can be trained but it requires time and patience. They have years of habit to overcome, so retraining isn't going to be quick and there will be plenty of accidents along the way.