Yes Google and other search engines will index content in "accordions", "drawers", or other types of collapsible UI element. The decision to keep the accordion open or not should be a design decision driven by user experience.
Here is a test case for whether Google, Bing, DuckDuckGo, Baidu, and Yandex index content in collapsible UI elements that are expanded or collapsed on page load.