Sure, if you do it right. Not if you do it wrong, obviously.

My answer is generic. You need to flesh things out with some specifics - based on whatever is required based on the homework question you have been asked.