No. Harry Nilsson (the singer-songwriter) did not appear in Goodfellas (1990). He passed away in 1994, but his film acting credits are virtually nonexistent (he composed/performed for films like The Courtship of Eddie's Father and Popeye).
You may be confusing him with another actor, or thinking of his music being used in a Scorsese film (e.g., "Jump into the Fire" in Goodfellas? — actually it's in Casino).