You can ask, but it's up to the shop. I have two local branches of MA - one I am a regular at, I've only taken fish there once (not bought from them), they gave me credit without me even asking.
The other, I took fish there on my first few visits, they didn't know me at the time, I got nothing. Then I took back some fish that I'd bought there a month previously - they gave me full credit.