Of course, it should be vented outside, most preferably through the attic. If not possible through the attic, you can vent it through the sidewall.