Can I locally get lets encrypt then load it shared hosting?

Yes for domain… You may also want to add a server alias line: ServerAlias www.domain.com to cover the www. version of your domain.

For the Docroot paths, you really should do absolute paths if you know what they are.

@JuergenAuer makes a good point as well. I am giving instructions assuming that 1and1 is using apache to host their control panel for shared hosting.