You definitely have to look at your personal situation and what the job entails. You need to be honest with yourself and evaluate your work habits and discipline carefully.
Working from home definitely has its benefits, like no commute time, ability to focus & not be interrupted, commute savings etc. , but you have to be a very motivated & disciplined employee to ensure you are getting your job duties done.
Having a space within your home designated as a work, no interruption zone is extremely helpful if you are considering this move to work from home only. It can get lonely and the feeling of never leaving the house creeps in quickly.
Integrating virtual conference calls and work groups into your day can help lessen the loss of social interaction. Also, getting out into public spaces to work for a few hours can help lessen the monotony of always looking at the same four walls at home.
If possible, try to get a mix of best of both worlds.
Best Wishes to you!