No. The PlayStation 3 runs its own operating system and its own store, and software compiled for Windows will not execute on it.
Online play on a PS3 means games released for the platform, whether from the PlayStation Store or on disc, plus the free-to-play titles that were specifically built for it. A PC game does not become compatible simply because both devices connect to the same router.
There are narrow exceptions that tend to cause the confusion: browser-based games work on the PS3's built-in browser, and some titles were released on both platforms separately. Streaming and remote-play features also blur the line, but in those cases the game is still running on a PC or console elsewhere and being streamed to the screen.