Can I enable storage for some channels and not for other channels?
No, the Storage & Playback add-on is enabled for each key so all messages are persisted for all channels published to that key by default.
publish method has a parameter that can be set to
store_in_history. Consult each SDK's docs for details on parameter name and usage.