Yes, you can use the same seed just like your friend. However, both the games will be different and cannot be affected by one another. The Seeds are only supposed to create a world for you to play in, and it is available for everyone to enjoy and play with.