I'd strongly recommend against it. Nothing to do with specs or viability but psychologically you'll want to play games - they're enjoyable. You can work around that in a few ways: only use the keyboard/mouse for dev work, only play games outside the workroom, etc. it will still take a lot of self discipline, but it's nothing compared to having a different OS, physical machine, etc.
In terms of specs - if it can run vs code, you can use the remote development plugins to run things on a beefier computer if you do heavy data work, etc. I don't know if it will do video editing though.