There are two forms of immorality:
active and passive.  

Doing something known to be wrong is immoral.
Not doing something known to be right
is also immoral.