Going to Germany, what should I do about my iphone?

I pretty much just want to use my iPhone like an iPod touch: no calls, can only text when using iMessage with Wi-Fi, and music. I don't want to use my data or anything. I just want to be able to connect to Wi-Fi and listen to music. Will simply putting my phone on airplane mode work? If not what do I need to do?

Put it in flight mode and manually turn on Wi-Fi

I just took out my sim card.