A visual way to look at how pivot tables work is of a process where every part of the process can only act upon or refer to its left:
CELLS --> FILTERS and FORMULAS --> GROUPING RESULTS --> SCREEN
As you see, FORMULAS is on the left of GROUPING. You cannot create a formula or filter based on something that doesn't exist yet (a grouping result).
So, my first answer to your question is no.
However, some workarounds are possible! For example, you can do a second pivot table based on the result of the first. You can also add columns your original cells to include something that will let you do what you need (such as duplicating the total on every row). Sometimes a different approach is in order.
If you wish to explain your problem and data more in detail, we could try to look for a workaround solution for you.