No, Apple did not buy BlackBerry.
While there has been speculation and rumor over the years, Apple has never acquired BlackBerry (BlackBerry Limited, formerly Research in Motion or RIM). BlackBerry stopped designing and releasing its own hardware in 2016. The company continues to exist, focusing on software and security solutions.