Can I use and or operators in the same if statement?

Like this

if ($C -lt 3 -and $C -gt 0 -or $C -eq 7) {perform this and that action}

Will this and that be performed if C is either 1, 2 or 7, otherwise nothing will occur. Is this possible, or is my use of and or operators wrong?

Like this

if ($C -lt 3 -and $C -gt 0 -or $C -eq 7) {perform this and that action}

Will this and that be performed if C is either 1, 2 or 7, otherwise nothing will occur. Is this possible, or is my use of and or operators wrong?

## Comment