It doesn't have to be the first line of a password store file, it can be anywhere in the file, as long as it starts with `otpauth://`. You can also just append it using `pass otp append foobar`. There's also a handy app that can read the password store database for both Android and iOS, which also supports OTP.