Nah. You can play with one player if you want to.
In Basketball you forfeit at the start of the game. You can pull your team but the conference may have penalty for doing so. May be penalty free to continue.
Actually you can finish a game without a full team on the floor. I played in a game (college) where we had to finish with 4 because so many people fouled out. Refs were brutal that night ;)
When I playd high school basketball here in Southern California, and this is back in the 1970s, if injuries and or fouls reduced you to less than five players you did not end the game. You kept on playing. I do believe in the NBA if you only have four players left the game is over and the other team wins.