You can write whatever you want in a license, including something as vague as “you can only use this code if I agree with your moral stances”. (For expediency, it might be worth enumerating the cases.)
The OSI might disapprove, but you don’t have to listen to them.