Yes - but becasue they will have got out of the habit of learning and it will sometimes take a while to pick new things up. (Same as any older creature - including humans )
Yes - I got a rescued dog who had only ever lived in kennels . She was 8 . I housetrained her and taught her everything you would normally teach a puppy