The 3000M, yes — with realistic expectations. The 1000M, only marginally.
These are professional workstation GPUs, built and certified for CAD, rendering, and video editing rather than games. The 3000M is the stronger of the two by a clear margin, and reviews of the HP Z1 workstation that shipped with it note that while the machine is designed for editing, it manages games respectably at moderate settings.
The 1000M sits well below that and will struggle with anything demanding.
So if you already own a 3000M machine, gaming is a reasonable secondary use. Buying one specifically for games is the wrong purchase.