No. William Shakespeare never distilled his wisdom into a single, explicit "life lesson" or motto. His works are not didactic; they are exploratory.
Shakespeare embedded moral and philosophical inquiry within dramatic action. His plays and sonnets present:
A single lesson would reduce the complexity that makes Shakespeare inexhaustible. He offers not answers but a laboratory for living—simulations of choice, power, love, betrayal, mortality. Each reader/audience member extracts the lesson their life requires at that moment.
As Ben Jonson wrote: "He was not of an age, but for all time." Precisely because he refused to pin the butterfly.