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.