No, it is not necessary to take the database offline. Ensure all users are signed out of the database before installing the Service Pack.