Please try code given below:
function blog_exclude_category( $query ) {
if ( $query->is_home() && $query->is_main_query() ) {
$query->set( 'cat', '-1' );
}
}
add_action( 'pre_get_posts', 'blog_exclude_category' );
Add this in your functions.php