Do you win if youre openent only has a king in chess?

No. The king must still be put in check mate. This is impossible with some combinations of pieces, so the match will be a draw. The match will also be a draw if the king is accidently put into stale mate.