If you have a vented dryer, yes. The risks of not venting a dryer outside (this can be safely done with an opening laundry window) is expelling moist air into your home which can cause condensation and, over time, mould. There is also an increased fire risk due to lint being trapped in the external vents of the machine.