If you have the option and have decided to work from home, then you need to consider not only the advantages but the disadvantages that come with it. There is the obvious perks of being your own boss and choosing the hours you wish to work but you should also ensure that you have the discipline to make sure that you do compete the work required. It is very easy to get distraction whilst in a home environment so many people working from home chose to have a room that is where they go to work and during that time they are solely in there to work and cannot be disturbed.
Although you can of course have flexibility, you should try to stick to some sort of work schedule, for example, getting up at a set time and be working. This will help you not only be productive but allow you to still have a distinction between home and work life.