If the two neutrals or grounds are for the same circuit (EG, fed from the same 20A or what-not breaker that you fed the hots from), then I see no problem. If neutrals from multiple circuits are combined, the pigtail would have to be of the proper ampacity for the combined current of all the neutrals pigtailed to it.
I agree that there is likely a better solution than pigtailing, though.