Can I merge two datasets one in long format and one in wide format with each other?

Thanks