It can be a huge distraction but if you keep a schedule and goals (daily, weekly, yearly, etc) then you should see success. If not, reevaluate or work away from home.
Working from home takes a lot of patience and persistence. It is not always easy to not take a break and go out with friends or have fun. But if you can convince yourself you are doing "work' then you will start to get into that frame of mind and succeed.