A former philosophy teacher whose best-known novel, Sophie's World, was a surprise international best-seller.

Based on the paragraph above can we conclude that "The person wrote the book after their job as a teacher was over"?
It's impossible to say