yes that is the best way to do it
fast until your workout.. then workout, and then eat AFTER
you will have the best results that way IF your goals are lean muscle mass and fat loss. if you are looking to get just stronger and fat and be one of those perma bulkers we see all over the gym with their bellies hanging over their belts then it won't work well lol