It might be difficult in practice though, with platforms like Steam providing no means to actually resell a game to someone else.
You should be able to if it is being advertised as “buy”. They should just say gain access to use it or something like that if they are not really selling anything.
The gaming industry is not ready for that discussion yet, but you absolutely should be able to.