Yes, you can add a standard or extended access list to the SNMP community command eg
C3524-R-10(config)#snmp-server community public RO ?
<1-99> Std IP accesslist allowing access with this community string
<1300-1999> Expanded IP accesslist allowing access with this community
string