Yes, you can. The one caveat is that it depends on the type of router and, on the earlier Xbox 360 models, on whether you have the wireless adapter — the original consoles needed the official USB adaptor or a wired connection, while later builds had Wi-Fi built in.
If you tell me which console revision and which router you have, I can be more specific about what is compatible.