Welcome, @RPASH.1, to the community!
Thank you for the question!
As long as it is used to develop software for original STM32, STM32CubeMX is free for anyone and for any application. Details can be found in the SLA.
Does it answer your question?
Regards
/Peter
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.