Short answer no.
As the Free Software definition and Open Source definition, states that the licence must not limit how the software is used. It must give freedom to use in any way that the user wishes. If this was not so, then it would make Free and Open software use less. You could not put a DVD on the front cover of a magazine; you could not provide a service to sell disk; you could never sell a pre-installed computer; …
From Free Software definition
https://www.gnu.org/philosophy/free-sw.en.html
The freedom to run the program as you wish, for any purpose (Freedom 0).
“Free software” does not mean “noncommercial”. A free program must be available for commercial use, commercial development, and commercial distribution.
From Open Source definition
https://opensource.org/osd-annotated
- No Discrimination Against Fields of Endeavor
The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research.
Rationale: The major intention of this clause is to prohibit license traps that prevent open source from being used commercially. We want commercial users to join our community, not feel excluded from it.
A better solution
Use a copy-left licence, such as GPL. This will force any distributor/modifier to pass on the same freedoms to their customers. So they can charge for copies, but must tell their customers of the freedoms that they have.