Yes: scan for viruses as has been suggested.
What led to the original conclusion that there is a virus? Was a specific virus identified?
Also: Update your post to include full system hardware specs and OS information.
What are you doing when the system gets slow? Gaming, browsing, bit-mining...?
Do you have a home network? Do any other computers on the home network get slow?
More information needed.