Yes you do, because stuff like this can cause memory leaks. It's always a good practice to clean up after yourself to ensure that you don't run into big problems down the road, as I have in the past, especially with Angular 1.
Cleaning up after your subscriptions are fairly straightforward:
import {Subscription} from 'rxjs/Subscription';
In your class:
public configSubscription: Subscription;
Inside constructor or ngOnInit
or other appropriate place:
this.configSubscription = this.api.config$.subscribe(
config => {
this.config = config;
});
Then clean up with this:
ngOnDestroy() {
this.configSubscription.unsubscribe();
}