To some extent. Butch Cassidy and the Sundance Kid were real figures, but the specific adventures and details depicted in the story might not all be historically accurate. It's a blend of fact and creative storytelling.
Yes, it was based on real characters, but the events shown in the movie may have been fictionalized or dramatized for entertainment purposes.