working out at home

Is working out at home as affective as going to the gym? I have a memebership but I never use it but I want to start working out, but I'm thinking of just doing it at home. I'm just more comfortable at home, and to save money I kind of want to cancel it.