Of course you can. The only difficulty is making IDX play nice with a theme that does may not support it. There are off the shelf IDX plugins you can use, but they’re usually a little bit pricey, and may not work well with all themes. That said, you can always modify the content and pages of a real estate theme to host another business.
Hope that helps.