The same degree(s) will get you either role after graduation, though the roles themselves will be different. A materials engineer role - at least at engineering design/consultancy/services companies - will involve ensuring that the correct materials are selected for the application, essentially. I'm less familiar with a materials scientist, though I'd expect them to be performing research, possibly into new materials or improving existing ones.