Yes, you can convert your granny flat into an office or workspace provided that you meet all the requirements of your local building code and obtain any necessary permits. You also need to consider the cost of converting your granny flat into an office or workspace and make sure that it is financially viable to do so.