There are lots of different types of Grids in QGIS, so I want to make sure we're talking about the same thing. This is the type of grid I think you're talking about:
A Map Grid on a Map Item in the Print layout
No, the map grid in print layout doesn't accept expressions.
Since the feature you want doesn't exist, here's a workaround that might help you.