You can apply for a new visa, but you do not need to. You can enter Canada using your new passport along with the valid visa in your old passport. See Can I travel to Canada with valid visa on old/expired passport? for more information.
Note also that the visa need not be valid for your entire stay. For example, you could use your existing visa to enter Canada in April 2019 for three months, even though it expires a month after you would enter. See Temporary resident visa validity (expiry dates):
The expiry date on the TRV is the date by which the visa must be used to seek admission into Canada. If the visa is not used on or before that date, it ceases to be valid.
The validity date is NOT the suggested duration of the visit. At the port of entry examination, CBSA officers determine the length of time temporary residents are authorized to stay in Canada.
Typically, when officers are satisfied that the foreign nationals are admissible, entry is granted for a six-month period, unless they hold a Parent and Grandparent Extended Stay Temporary Resident Visa (PG-1 or letter of introduction from the visa office), in which case entry may be granted for a period of up to two years on their initial stay.