He used his real-life adventures as a source of inspiration and even wrote about specific events from his youth, often embellishing them with humor and his signature wit.
So, yes, many of Mark Twain's stories were deeply connected to his boyhood experiences!