It is not okay to torture a child, I mean it is wrong to torture a child to prevent the torture of two, you should teach him a lesson without torture, Morality is clear and evident to a discerning mind and all morality is subjective.
The prevalence of moral disagreements both within and between societies is often cited as evidence for the subjectivity of morality. People in different cultures, and even within the same culture, may have fundamentally different views about what is right or wrong. For instance, one person might argue that abortion is morally wrong, while another might believe it's a woman's right to choose.
that's why God is the source of all morality, Many theistic philosophers argue that God is the standard of all goodness and morality. According to this view, moral actions are considered good because they align with God’s nature. Since God is morally perfect, all of God's actions are inherently good, and thus God's character provides a standard by which all human actions can be judged.