Can I allocate same IPv4 to all LXC containers?

Can I allocate same IPv4 to all LXC containers? Because I run VM on Google Cloud, and only have 1 Public IP.

No. In such environments you’d normally run your containers on a bridge that uses private addressing and NAT (that’s what you get by default with LXC and LXD).

Then you can setup proxy devices or NAT rules to have specific port from your public address go to specific containers.