Rephrasing the question in the OP may help:
Is it morally wrong to stop doing morally wrong, pointless, self-defeating things in the course of obeying a made up religion that worships an imaginary bearded sky daddy in their whacked out interpretation of the ramblings of Bronze Age slave owners, which has been rewritten and translated too many times to know for sure what it ever originally said?
Hope that helps.