No, you don't need to pay to participate as a writer. You can write and publish using a free Medium account.
The $5 monthly program allows you to read articles the Medium decides is premium content. It's not needed to fulfill your Freedom Machine assignments, but you may want to join for a month to read what is considered some of the best content on the platform.