yup,
for reference about bit masking you could have a look at those
http://en.wikipedia.org/wiki/Bitwise_operation
http://en.wikipedia.org/wiki/Mask_(computing)

Welcome here, and enjoy!