Is it the right way to add jquery and css in wordpress?

No. As wordpress codex states, you should use jquery and other javascript files provided by them. As for css files I think you can use yours.

Please check this link( scroll down) for a list of already defined javascript files.

Also, you have to use local files as much as possible, unless you have no other way. So for example, if you have a js library, you should download it and include it in your theme/plugin files and not enqueue it using CDN or any other external link. WordPress team will refuse to publish your theme/plugin if you include external js files without a good reason.

LE: for jquery-ui you only have to use this

 wp_enqueue_script( 'jquery-ui')

or add it as a dependency of your own script like this

wp_enqueue_script('my-script', 'url-to-scrip', array('jquery-ui'))