Check word for word the code you are using
Depends on how you interpret this,
I don’t think I would want to smell Burger King, while setting on the roof
Imc
506.3.13
]
outlets that terminate above the roof shall have the discharge opening located not less than 40 inches (1016 mm) above the roof surface
506.3.13.3
]outlets shall be located not less than 10 feet (3048 mm) horizontally from parts of the same or contiguous buildings, adjacent buildings and adjacent property lines and shall be located not less than 10 feet (3048 mm) above the adjoining grade level. Exhaust outlets shall be located not less than 10 feet (3048 mm) horizontally from or not less than 3 feet (914 mm) above air intake openings into any building.
Exception: Exhaust outlets shall terminate not less than 5 feet (1524 mm) horizontally from parts of the same or contiguous building, an adjacent building, adjacent property line and air intake openings into a building where air from the exhaust outletdischarges away from such locations.