No. Microsoft InfoPath was a solution for creating customisable forms to enable automated workflows, whereas Microsoft Forms is a basic, lightweight app for quickly collecting data via surveys and quizzes.
SharePoint Online Lists, Power Automate and Power Apps replace Microsoft Infopath. These are modern solutions for digitising traditional organisational forms, automating workflows and transforming business processes.