The timeline barely overlaps, but the probability is vanishingly small.
Twain was 75 in 1908 with declining health and diminishing interest in new fiction—especially children's literature. No record exists of him reading, reviewing, or commenting on Montgomery's novel. It's possible he saw a mention in a literary journal or heard of it through his publishing connections, but there's zero evidence he ever held the book.
The two authors represent different literary worlds: Twain's rough-hewn American realism vs. Montgomery's romantic Canadian pastoral. A meeting of minds across the page never happened.