Can I store a temp file on AWS Lambda Function?
Yes, quoting from the AWS Lambda FAQ
Each Lambda function receives 500MB of non-persistent disk space in its own /tmp directory.
https://aws.amazon.com/lambda/faqs/
Note that as the commenters point out, it is only reliably there for a single execution of your function. You don't have control over the execution environment, so subsequent runs may be in different instances of your lambda function.
If you need the data to be more persistent you should use AWS S3.