Yes thats possible.
See for technical documentation: https://docs.mendix.com/developerportal/deploy/on-premises-design/
And pricing can be found here: https://www.mendix.com/pricing/
Although for on-premise installation, contact Mendix sales for more detailed pricing