Can you use the recent custom post type widget with categories?

is there anyway to use the recent custom post widget with categories? So the widget will only display certain categories?