Not consciously. I’m not really a Terry Pratchett fan. I’ve only read the first two discworld books and Equal Rites (I think?). I’m aware of his books with Death (is the book Mort about an apprentice?), so I can’t deny that could well have been in the back of my mind.