No, Walmart does not normally count as a grocery store and will not earn bonus rewards. Occasionally, however, you will find Walmart listed as a bonus category on credit cards that have quarterly rotating bonus categories.
You’ll normally have to register in advance to be eligible, but once you have one of these credit cards you will receive reminder notices to do so. An example of a credit card with quarterly bonus categories is the Chase Freedom Flex℠ Credit Card.