Yes you can merge fields from multiple objects but everything needs to be related to the base object. You can merge from the lowest object in the relationship and always access the fields from lookup and master detail relationships fields on that object and go up.