Like often, it all comes down to the definition, I want to be technical about it: "selfish" can be defined as "lacking consideration for other people".
If we take that as a premise, then if the person suicides while doing this (willingly or negligently not considering other people's feelings/situations as a result), then they fall under the criteria.
Now, the degree of how selfish one can be by doing this is another separate argument.
As this gradient is subjective, I'll give my own standards; the level of selfishness is weighted mainly by 2 things: how negative will the impact be for the people affected by this death (e.g: there's greater impact if this person had a family with kids, as opposed as if they're alone), and added to that, if the reason for the suicide is considerable enough or not in order to decide to do so, against its consequences.
E.g (1): a single father deciding to take his life because of depression, leaving his young kids alone and at risk of having a crippled childhood, or even dying.
- I'd consider this relatively very highly selfish.
E.g (2): a lonely person with family and friends (but they don't see much nor have deep emotional connections), and they're about to be homeless or something, or a major illness that will really affect their lifestyle.
- I'd consider this not very selfish.
As you can see (in my opinion), OP's question can be answered either way ("yes" or "no") depending on the context and if the definition applies. Then if the answer is "yes", subjective criteria will determine the degree of selfishness.