Yes and no. Using gloves ensures that your hands do not touch any potentially infected surface. And that's a good thing.
But also, people tend to assume that because you are wearing gloves, you will not catch the infection. That is a fallacy. You might touch the infected surface and then touch your face with the gloves - and that can be tricky.
So, if wearing gloves for a long time, keep sanitising them, like you would sanitise your hands. And avoid touching your eyes, nose, mouth.. and don't get complacent.
My suggestion would be to wear gloves for a limited time, when outside or in a shop or while driving, and not inside the house or for long periods. Irrespective of gloves, do keep regularly sanitising your hands, and avoid touching your face.