It depends on the specific case. For terrorism, yes. For most other things, no. Also, there needs to be a judicial process in place. They can't just straight-up demand it and expect immediate compliance. It's not enforceable for many online services.