Hook

Conditionally enqueue a Script or Style

add_action( 'wp_enqueue_scripts', 'conditionally_enqueue_styles');

function conditionally_enqueue_styles() {
	if ( is_front_page() || !is_archive() ) {
		wp_enqueue_style('bootstrap', 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css');
		wp_enqueue_style('style', get_stylesheet_uri());
		wp_enqueue_script( 'bootstrap-js', 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js', array('jquery'), '3.3.4', true );
	}
}