ACF does not check a field group to see if it’s active when you use get_field() and other field functions. You would need to check this yourself by getting the field group
$group = acf_get_field_group('group_5c1d039ed4066'); // your field group key
if ($group['active']) {
// code here for showing fields in the group
}