Assume that I have a heap table with a higher fragmentation percentage and that table also has a non-clustered index with higher fragmentation too. I can't reproduce this case right now but maybe someone had tested it before.
Do I need to rebuild a heap table after rebuilding a non-clustered index?
ALTER TABLE YourTable REBUILD;
.