No it’s not. Assume there is demand for 5000 units at $1 and 2000 units at $2. If it cost $0 to produce, then the profit is $5000/$4000 so you should price at $1. If it cost 90c to produce, then the profit is $500/$2200 so you should price at $2.
I was talking about software (the OP example), where there is a big fixed cost and (generally) a very low per unit cost. But I probably should have made that clearer. Things do indeed change when you have a significant per unit cost (e.g. manufactured goods).