I live in Oregon but earned income in California only last year. Do I need to file taxes in Oregon and California?

If I file a federal tax return do I have to file a state return?