Safe? Yes, does it make sense? No. The space is super tight so I get it. The functionality will be severely compromised, and that fridge door will be dented in no time. Can I suggest you move it all the way to the left as far as possible, then let that counter space be on the right side of it? So safety wise you’re ok, but it just doesn’t look like it will function well.
This will not be a successful kitchen design. There are multiple issues. The clearances will not work. I’d suggest working with a Kitchen Designer who is familiar with the 31Rules of Kitchen Design, cabinet specifications, building codes, and appliance clearance issues.
It is always better to a long distance between the stove and freeze. almost a stove gives the heat about 500-degree Fahrenheit. And a freeze coting not tolerate this temperature.
I would recommend that near the fridge and wall oven, leave 15 inches on both sides. Because placing your fridge next to your oven could force the fridge to work harder to achieve the desired internal temperature.