It’s certainly possible.
How to implement it exactly depends on how you store your data.
If your posts are normal MODX resources and you want to filter by the published date, then you can use the where property of getResources/pdoResources.
Generate the value of the where property in a custom snippet where you read the year and the month parameters from the request.