Literally can be used as anything. A verb, noun, or adjective.
Michael stubbed his toe and yelled âgay.â