Absolutely God would hear if you approached him with sincerity. He's not immune to our weaknesses as He Himself stepped down to earth in the form of man so that he could relate to us and us to Him. He Himself has dealt with temptations and the weaknesses of the flesh - without sin. What a wonderful Lord we have, who loved us so much that he stepped down to earth this way, risking ridicule, mockery and beatings - and the final sacrifice of dying for our sins - so that we could have everlasting life with Him. What a Master we serve!!
By all means, approach Him with sincerity and determination to not sin again. He is faithful and just to forgive. Ask him for strength to resist and wisdom to understand why you do what you do. Lay it all at His feet.