From a licensing perspective, yes. However I looked into installing custom modules in Elasticache Redis once and you cannot do it (Same with RedisLabs' hosted solution although you can at least install their modules).
If you installed Redis on an EC2 instance manually you could run the modules.