I found this from a tutorial. Try adding this to your functions file and replace -1 with the categories you want to exclude –
/** Exclude certain category from posts */
add_action( 'pre_get_posts', 'be_exclude_category_from_blog' );
function be_exclude_category_from_blog( $query ) {
if( $query->is_main_query() && $query->is_home() ) {
$query->set( 'cat', '-1' );
}
}