Here’s what you need to know to take advantage of the benefits and avoid the pitfalls.