No, not just when he was with Jews. That would be hypocritical. That was the very thing he upbraided Peter over, remember? There is a verse in the Bible. An important verse. It reads “If you love Me, keep My Commandments”. It’s in there I guarantee it. You can find it too if want to bad enough.
According to the bible, Paul says when he was around Jews he acted like a Jew which means when he wasn't around Jews he didn't act like one.
1 Co 9:20
"To the Jews I became like a Jew, to win the Jews. To those under the law I became like one under the law (though I myself am not under the law), so as to win those under the law."