Technically yes, through an open-source engine port, but you have to supply the game files yourself.
The Xash3D engine is an open-source reimplementation of the GoldSrc engine that powered Half-Life. It has been compiled to WebAssembly and runs in a browser, and it is a genuine technical achievement.
Here is the catch the viral posts skip: the engine is open source, the game is not. You need the Half-Life data files, which come from a copy you own. Without them the browser build has nothing to load.
That model is called an engine port with required data files, and it is the most defensible version of browser retro gaming. It is also the most fiddly.